/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package kbclient;

import java.util.List;
import net.java.dev.jaxb.array.StringArray;

/**
 *
 * @author Psychoray
 */
public class Model extends java.util.Observable {
        
    // Global variables
    List<StringArray> localArticles = null;
    List<StringArray> localCategoriesInformation = null;
    List<StringArray> localCategoriesProblem = null;
    
    /**
     * Downloads all articles and stores them locally. 
     */    
    public void downloadAllArticles() { 
        //localArticles = getAllArticles();
    }

    /*
    *********************
    * WEB SERVICE METHODS
    *********************
    */
    public java.util.List<net.java.dev.jaxb.array.StringArray> ModalSocketWriter(String criteria, boolean displayOutDated)
    {
        return findArticleWithHeaderData(criteria, displayOutDated);
    }

    private static java.util.List<net.java.dev.jaxb.array.StringArray> findArticleWithHeaderData(java.lang.String criteria, boolean displayOutdatedFiles) {
        kmwebservice.Kennismanagement_Service service = new kmwebservice.Kennismanagement_Service();
        kmwebservice.Kennismanagement port = service.getKennismanagementPort();
        return port.findArticleWithHeaderData(criteria, displayOutdatedFiles);
    }   
}
